package com.fable.common.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.BooleanEnum;
import com.alibaba.excel.enums.poi.FillPatternTypeEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @Author : guozhenhu
 * @date: 2023/7/21
 * @Description : 测试
 **/

@Data
@NoArgsConstructor
@Accessors(chain = true)
@ContentRowHeight(33)
@HeadRowHeight(50)
@HeadFontStyle(fontName = "黑体",fontHeightInPoints = 16,bold = BooleanEnum.FALSE)
@HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 72)
public class LandUsePlanningDTO {

    @ColumnWidth(10)
    @ApiModelProperty(value = "序号")
    @ExcelProperty(value = {"序号"}, index = 0)
    private String Number;

    @ApiModelProperty(value = "市（州）")
    @ExcelProperty(value = {"市（州）"}, index = 1)
    private String city;

    @ApiModelProperty(value = "县（市、区）")
    @ExcelProperty(value = {"县（市、区）"}, index = 2)
    private String county;

    @ApiModelProperty(value = "项目名称")
    @ExcelProperty(value = {"项目名称"}, index = 3)
    private String projectName;

    @ApiModelProperty(value = "建设单位")
    @ExcelProperty(value = {"建设单位"}, index = 4)
    private String constructionUnit;

    @ApiModelProperty(value = "证书编号/发文编号")
    @ExcelProperty(value = {"证书编号/发文编号"}, index = 5)
    private String credentialNumber;

    @ApiModelProperty(value = "项目类型")
    @ExcelProperty(value = {"项目类型"}, index = 6)
    private String projectType;

    @ApiModelProperty(value = "用地面积")
    @ExcelProperty(value = {"用地面积"}, index = 7)
    private Double landArea;

    @ApiModelProperty(value = "建设规模")
    @ExcelProperty(value = {"建设规模"}, index = 8)
    private Double constructionScale;

    @ApiModelProperty(value = "申请办理时间")
    @ExcelProperty(value = {"申请办理时间"}, index = 9)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime applicationProcessingTime;

    @ApiModelProperty(value = "批准时间")
    @ExcelProperty(value = {"批准时间"}, index = 10)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime approvalTime;

    @ApiModelProperty(value = "项目开工时间")
    @ExcelProperty(value = {"项目开工时间"}, index = 11)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "是否存在安全隐患")
    @ExcelProperty(value = {"是否存在安全隐患"}, index = 12)
    private String safetyHazard;

    @ApiModelProperty(value = "备注")
    @ColumnWidth(10)
    @ExcelProperty(value = {"备注"}, index = 13)
    private String remarks;
}
